<?php

namespace App\Enums;

use App\Traits\EnumTrait;

class RecommendStatusEnum
{
    use EnumTrait;

    const YES = ['status' => 1, 'text' => "是"];
    const NO = ['status' => 0, 'text' => "否"];

    public static function getStatusToText()
    {
        return array_column(self::getConstants(), 'text', 'status');
    }

    public static function getStatus($enum)
    {
        return $enum['status'];
    }
}
